package com.hnevc.yinqi;

import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Random;

public class Work07 {
    public static void main(String[] args) {
        int[]a = new int[10];
        for (int b= 0 ; b<10;b++){
            a[b]=(int)(Math.random()*100);
        }
        for (int b = 1;b<a.length;b++){
            for (int c = 0;c<a.length-1;c++){
                if (a[c]>a[b]){
                    int num =a[c];
                    a[c]=a[b];
                    a[b]=num;
                }
            }
        }
        System.out.println(Arrays.toString(a));
    }
}